package com.cps116.friendstracker;

import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class QueryActivity extends BaseActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.queryactivity_layout);
		
		//setting up the tab host
		TabHost th = (TabHost) findViewById(R.id.query_activity_tabhost);
		th.setup();
		//setting up the individual tab
		TabSpec spec = th.newTabSpec("tag_1");
		spec.setContent(R.id.query_activity_tab1);
		spec.setIndicator(getString(R.string.query_activity_new_query_tab), 
		getResources().getDrawable(android.R.drawable.ic_menu_help));		
		spec.setContent(R.id.query_activty_new_query_listview);
		
		th.addTab(spec);
		
		spec = th.newTabSpec("tag_2");
		spec.setContent(R.id.query_activity_tab2);
		spec.setIndicator(getString(R.string.query_activity_history_query_tab),
				getResources().getDrawable(android.R.drawable.ic_menu_agenda));
		spec.setContent(R.id.query_activity_history_list_view);
		
		th.addTab(spec);
		
		
		
	
		
		
	}

	
	
	
	
	
	
}
